package com.aidong.carnival.controllers.concerns;

import org.springframework.ui.ModelMap;

import com.aidong.carnival.controllers.concerns.View.Base;
import com.fasterxml.jackson.annotation.JsonView;

public class Success extends Result {
	@JsonView(Base.class)
	private Object result;

	public Success(Object data) {
		this.setCode(1);
		this.result = data;
	}

	public Success(String message, ModelMap data) {
		this.setCode(1);
		this.result = data;
	}
}
